// 工具函数库

// 传入时间戳，返回年龄
function getAge(timeStamp)
{
    let birthTime = new Date(timeStamp).getTime(); 
    let nowTime = new Date().getTime(); 
    return Math.floor((nowTime-birthTime)/31536000000);
}
export {
    getAge
}
